from apps.common.base.dao import BaseDao
from apps.education.course.serializers import *

class CourseDao(BaseDao):
    MODEL_CLASS = Course
    SERI_CLASS = CourseBaseSerializer

    def findAll(self):
        return super().findAll().select_related('coursecate', 'teacher')